<form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    <div class="form-group">
        <label for="name" class="control-label col-xs-12 col-sm-2">{:__('标题')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="name" name="row[name]" value="" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('视频上传')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-url" class="form-control" size="50" name="row[url]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-url" class="btn btn-danger plupload" data-input-id="c-url" data-mimetype="mp4,mp3,avi,flv,wmv" data-multiple="false" data-maxsize="50M" data-chunking="true"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-url" class="btn btn-primary fachoose" data-input-id="c-url" data-mimetype="mp4,mp3,avi,flv,wmv" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-url"></span>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="gather" class="control-label col-xs-12 col-sm-2">{:__('视频采集')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" id="gather" name="row[gather]" value="" />
        </div>
    </div>
    <div class="form-group">
        <label for="menu_id" class="control-label col-xs-12 col-sm-2">{:__('菜单栏目')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control selectpage" data-source="xuboss/menu/store_list"
                   id="menu_id" name="row[menu_id]"  value="" data-rule="required" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('是否显示')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[state]', [1=>__('是'), 2=>__('否')])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-weigh" class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number" value="0">
        </div>
    </div>

    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
